package com.gzs.learn.admin.model.vo.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gzs.learn.inf.PageRequestDto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.util.Date;
import java.util.List;

/**
 * 基础的请求实体对象,封装公共的请求参数
 *
 * @author guanzhisong
 * @date 2021-07-27
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@EqualsAndHashCode(callSuper = false)
public class BaseRequest extends PageRequestDto {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * 起始查询时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date beginTime;
    /**
     * 结束查询时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date endTime;
    /**
     * 操作ip集合
     */
    protected List<String> operatorIps;
}
